/*
 * @Author: Jimmy
 * @LastModifiedBy: Jimmy
 * @Date: 2025-02-09 17:06:22
 * @LastEditTime: 2025-05-20 21:38:53
 * @FilePath: /monitor_belt/src/api/message/index.ts
 */

import { http } from "@/utils/request";
import { TQuery, TResponse } from "../index.type";

// 预警消息
export const remoteAlarmList = (data:TQuery) => {
    return http.post<TResponse>(`/web/record/history`,data);
}

// 获取最新预警消息
export const remoteLatestAlarm = (count:number) => {
    return http.get<TResponse>(`/web/records/latest/${count}`);
}

// 确认预警消息
export const updateAlarmState = (params:TQuery) => {
    return http.post<TResponse>(`/web/record/state`,{},{params});
}